<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="/template/template.xhtml"
	xmlns:s="http://sduept.security.el/func">
	<ui:define name="content">
		<div class="nav-tabs-custom" id="tabView">
			<ul class="nav nav-tabs">
				<li class="active"><a href="#substation" data-toggle="tab">变电站</a></li>
				<li><a href="#aCLineSegment" data-toggle="tab">线</a></li>
				<li><a href="#busbarsection" data-toggle="tab">母线</a></li>
				<li><a href="#breaker" data-toggle="tab">断路器</a></li>
				<li><a href="#powertransformer" data-toggle="tab">变压器</a></li>
				<li><a href="#Compensator" data-toggle="tab">电抗器</a></li>
				<li><a href="#hydrogeneratingunit" data-toggle="tab">发电机组</a></li>
			</ul>

			<p:dialog widgetVar="statusDialog" modal="true" draggable="false"
				closable="false" resizable="false" showHeader="false">
				<img src="#{request.contextPath}/resources/img/ajaxloadingbar.gif" />
			</p:dialog>

			<div class="tab-content no-padding">
				<div class="chart tab-pane active" id="substation">
					<div class="box">
						<div class="box-body  full-content-scroll">
							<h:form id="substationForm">
								<p:growl id="msg" showDetail="true"></p:growl>
								<p:confirmDialog global="true" showEffect="fade"
									hideEffect="fade">
									<p:commandButton value="是" type="button"
										styleClass="ui-confirmdialog-yes" icon="ui-icon-check" />
									<p:commandButton value="否" type="button"
										styleClass="ui-confirmdialog-no" icon="ui-icon-close" />
								</p:confirmDialog>
								<p:toolbar>
									<f:facet name="left">
										<p:commandButton style="margin-left:5px" value="全部"
											actionListener="#{bxDataModelController.getAllBxSubstation}"
											update="msg substation" />
										<p:commandButton style="margin-left:5px" value="未关联"
											actionListener="#{bxDataModelController.getBxSubstation}"
											update="msg substation" />
										<p:commandButton value="重新关联" style="margin-left:5px"
											rendered="#{s:hasPermission(session,'jcsj_sjwh_ycsbwh_bxsjmxwh_bdzzxgl')}"
											onstart="PF('statusDialog').show()"
											actionListener="#{bxDataModelController.relationSubstation}"
											onsuccess="PF('statusDialog').hide()" update="msg substation">
											<p:confirm header="提示" message="确定重新关联吗?" />
										</p:commandButton>
									</f:facet>
								</p:toolbar>
								<p:dataTable id="substation" var="substation" emptyMessage="无记录" rowKey="#{substation.id}" rows="20"
									selection="#{bxDataModelController.selectedBxSub}" value="#{bxDataModelController.bxSubstations}" paginator="true" rowIndexVar="ite"
									paginatorTemplate="{Customization} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}
									{RowsPerPageDropdown}" rowsPerPageTemplate="20,50,100" paginatorPosition="bottom" selectionMode="single" style="text-align:center">
									<f:facet name="{Customization}">
										<p:outputLabel value="总计：#{bxDataModelController.bxSubstations.size()} 条记录"
											style="margin-right:20px;"></p:outputLabel>
									</f:facet>
									<p:column headerText="序号 " style="width:60px">
										<h:outputText value="#{ite+1}" />
									</p:column>
									<p:column headerText=" 保信变电站名">
										<h:outputText value="#{substation.mname}" />
									</p:column>
									<p:column headerText=" 保信变电站ID">
										<h:outputText value="#{substation.stationid}" />
									</p:column>
									<p:column headerText="cim变电站名">
										<h:outputText value="#{substation.cimName}" />
									</p:column>
									<p:column headerText="操作" style="width:200px">
										<p:commandLink value="关联" update="substation" style="text-decoration:underline;color:red;"
											rendered="#{s:hasPermission(session,'jcsj_sjwh_ycsbwh_bxsjmxwh_bdzgl')}"
											actionListener="#{bxDataModelController.chooseEquipment('SubStation')}">
											<p:ajax event="dialogReturn"
												listener="#{bxDataModelController.onSelectedStationChosen}" update="substation" />
											<f:setPropertyActionListener
												target="#{bxDataModelController.selectedBxSub}" value="#{substation}" />
										</p:commandLink>
									</p:column>
								</p:dataTable>
							</h:form>
						</div>
						<div class="box-footer"></div>
					</div>
				</div>
				<!--线  -->
				<div class="chart tab-pane" id="aCLineSegment">
					<div class="box">
						<div class="box-body  full-content-scroll">
							<h:form id="bxACLineSegmentForm">
								<p:growl id="msg" showDetail="true"></p:growl>
								<p:confirmDialog global="true" showEffect="fade"
									hideEffect="fade">
									<p:commandButton value="是" type="button"
										styleClass="ui-confirmdialog-yes" icon="ui-icon-check" />
									<p:commandButton value="否" type="button"
										styleClass="ui-confirmdialog-no" icon="ui-icon-close" />
								</p:confirmDialog>
								<p:toolbar>
									<f:facet name="left">
										<p:commandButton style="margin-left:5px" value="全部"
											update="msg bxACLineSegmentTb"
											actionListener="#{bxDataModelController.getAllAcline}" />
										<p:commandButton style="margin-left:5px" value="未关联"
											update="msg bxACLineSegmentTb"
											actionListener="#{bxDataModelController.getAcline}" />
										<p:commandButton value="重新关联" style="margin-left:5px"
											rendered="#{s:hasPermission(session,'jcsj_sjwh_ycsbwh_bxsjmxwh_xlzxgl')}"
											onstart="PF('statusDialog').show()"
											actionListener="#{bxDataModelController.relation500kVAcline}"
											update="msg bxACLineSegmentTb"
											onsuccess="PF('statusDialog').hide()">
											<p:confirm header="提示" message="确定重新关联吗?" />
										</p:commandButton>
									</f:facet>
								</p:toolbar>
								<p:dataTable id="bxACLineSegmentTb" var="bxACLineSegment"
									emptyMessage="无记录" rowKey="#{bxACLineSegment.id}" value="#{bxDataModelController.bxACLineSegments}"
									selection="#{bxDataModelController.selectedBxAcline}" paginator="true" rowIndexVar="ite" rows="20"
									paginatorTemplate="{Customization} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}
									{RowsPerPageDropdown}" rowsPerPageTemplate="20,50,100" paginatorPosition="bottom" selectionMode="single" style="text-align:center">
									<f:facet name="{Customization}">
										<p:outputLabel value="总计：#{bxDataModelController.bxACLineSegments.size()} 条记录"
											style="margin-right:20px;"></p:outputLabel>
									</f:facet>
									<p:column headerText="序号 " style="width:60px">
										<h:outputText value="#{ite+1}" />
									</p:column>
									<p:column headerText=" 保信变电站ID">
										<h:outputText value="#{bxACLineSegment.stationid}" />
									</p:column>
									<p:column headerText=" 线路名">
										<h:outputText value="#{bxACLineSegment.mname}" />
									</p:column>
									<p:column headerText="cim线路名">
										<h:outputText value="#{bxACLineSegment.cimName}" />
									</p:column>
									<p:column headerText="操作" style="width:200px">
										<p:commandLink value="关联" update="bxACLineSegmentTb" style="text-decoration:underline;color:red;"
											rendered="#{s:hasPermission(session,'jcsj_sjwh_ycsbwh_bxsjmxwh_xlgl')}"
											actionListener="#{bxDataModelController.chooseEquipment('ACLineSegment')}">
											<p:ajax event="dialogReturn" listener="#{bxDataModelController.onAclineChosen}" update="bxACLineSegmentTb" />
											<f:setPropertyActionListener
												target="#{bxDataModelController.selectedBxAcline}" value="#{bxACLineSegment}" />
										</p:commandLink>
									</p:column>
								</p:dataTable>
							</h:form>
						</div>
						<div class="box-footer"></div>
					</div>
				</div>
				<!--母线  -->
				<div class="chart tab-pane" id="busbarsection">
					<div class="box">
						<div class="box-body  full-content-scroll">
							<h:form id="bxBusbarsectionForm">
								<p:growl id="msg" showDetail="true"></p:growl>
								<p:confirmDialog global="true" showEffect="fade"
									hideEffect="fade">
									<p:commandButton value="是" type="button"
										styleClass="ui-confirmdialog-yes" icon="ui-icon-check" />
									<p:commandButton value="否" type="button"
										styleClass="ui-confirmdialog-no" icon="ui-icon-close" />
								</p:confirmDialog>
								<p:toolbar>
									<f:facet name="left">
										<p:commandButton style="margin-left:5px" value="全部"
											actionListener="#{bxDataModelController.getAllBusbars}"
											update="msg bxBusbarsectionTb" />
										<p:commandButton style="margin-left:5px" value="未关联"
											actionListener="#{bxDataModelController.getBusbar}"
											update="msg bxBusbarsectionTb" />
										<p:commandButton value="重新关联" style="margin-left:5px"
											rendered="#{s:hasPermission(session,'jcsj_sjwh_ycsbwh_bxsjmxwh_mxzxgl')}"
											onstart="PF('statusDialog').show()"
											actionListener="#{bxDataModelController.relation500kVBusbar}"
											onsuccess="PF('statusDialog').hide()"
											update="msg bxBusbarsectionTb">
											<p:confirm header="提示" message="确定重新关联吗?" />
										</p:commandButton>
									</f:facet>
								</p:toolbar>
								<p:dataTable id="bxBusbarsectionTb" var="bxBusbarsection" emptyMessage="无记录" rowKey="#{bxBusbarsection.id}"
									value="#{bxDataModelController.bxBusbarsections}" selection="#{bxDataModelController.selectedBusbarSection}"
									selectionMode="single" style="text-align:center" paginator="true" rowIndexVar="ite" rows="20"
									paginatorTemplate="{Customization} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}
									{RowsPerPageDropdown}" rowsPerPageTemplate="20,50,100" paginatorPosition="bottom" >
									<f:facet name="{Customization}">
										<p:outputLabel value="总计：#{bxDataModelController.bxBusbarsections.size()} 条记录"
											style="margin-right:20px;"></p:outputLabel>
									</f:facet>
									<p:column headerText="序号 " style="width:60px">
										<h:outputText value="#{ite+1}" />
									</p:column>
									<p:column headerText=" 保信变电站ID">
										<h:outputText value="#{bxBusbarsection.stationid}" />
									</p:column>
									<p:column headerText=" 保信母线名">
										<h:outputText value="#{bxBusbarsection.mname}" />
									</p:column>
									<p:column headerText="cim母线名">
										<h:outputText value="#{bxBusbarsection.cimName}" />
									</p:column>
									<p:column headerText="操作" style="width:200px">
										<p:commandLink value="关联" update="bxBusbarsectionTb" style="text-decoration:underline;color:red;"
											rendered="#{s:hasPermission(session,'jcsj_sjwh_ycsbwh_bxsjmxwh_mxgl')}"
											actionListener="#{bxDataModelController.chooseEquipment('BusbarSection')}">
											<p:ajax event="dialogReturn"
												listener="#{bxDataModelController.onBusbarSectionChosen}"
												update="bxBusbarsectionTb" />
											<f:setPropertyActionListener
												target="#{bxDataModelController.selectedBusbarSection}"
												value="#{bxBusbarsection}" />
										</p:commandLink>
									</p:column>
								</p:dataTable>
							</h:form>
						</div>
						<div class="box-footer"></div>
					</div>
				</div>
				<!--   断路器-->
				<div class="chart tab-pane" id="breaker">
					<div class="box">
						<div class="box-body  full-content-scroll">
							<h:form id="bxBreakersForm">
								<p:growl id="msg" showDetail="true"></p:growl>
								<p:confirmDialog global="true" showEffect="fade"
									hideEffect="fade">
									<p:commandButton value="是" type="button"
										styleClass="ui-confirmdialog-yes" icon="ui-icon-check" />
									<p:commandButton value="否" type="button"
										styleClass="ui-confirmdialog-no" icon="ui-icon-close" />
								</p:confirmDialog>
								<p:toolbar>
									<f:facet name="left">
										<p:commandButton style="margin-left:5px" value="全部"
											actionListener="#{bxDataModelController.getAllBreaker}"
											update="msg bxBreakerTb" />
										<p:commandButton style="margin-left:5px" value="未关联"
											actionListener="#{bxDataModelController.getBreaker}"
											update="msg bxBreakerTb" />
										<p:commandButton value="重新关联" style="margin-left:5px"
											rendered="#{s:hasPermission(session,'jcsj_sjwh_ycsbwh_bxsjmxwh_dlqzxgl')}"
											onstart="PF('statusDialog').show()"
											actionListener="#{bxDataModelController.relation500kVBreaker}"
											onsuccess="PF('statusDialog').hide()"
											update="msg bxBreakerTb">
											<p:confirm header="提示" message="确定重新关联吗?" />
										</p:commandButton>
									</f:facet>
								</p:toolbar>
								<p:dataTable id="bxBreakerTb" var="bxBreaker" emptyMessage="无记录"
									rowKey="#{bxBreaker.id}" value="#{bxDataModelController.bxBreakers}"
									selection="#{bxDataModelController.selectedBxBreaker}"
									style="text-align:center" paginator="true" rowIndexVar="ite" rows="20"
									paginatorTemplate="{Customization} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}
									{RowsPerPageDropdown}" rowsPerPageTemplate="20,50,100" paginatorPosition="bottom" >
									<f:facet name="{Customization}">
										<p:outputLabel value="总计：#{bxDataModelController.bxBreakers.size()} 条记录" style="margin-right:20px;" />
									</f:facet>
									<p:column headerText="序号 " style="width:60px">
										<h:outputText value="#{ite+1}" />
									</p:column>
									<p:column headerText=" 保信变电站ID">
										<h:outputText value="#{bxBreaker.stationid}" />
									</p:column>
									<p:column headerText=" 保信断路器名">
										<h:outputText value="#{bxBreaker.mname}" />
									</p:column>
									<p:column headerText="cim变断路器名">
										<h:outputText value="#{bxBreaker.cimName}" />
									</p:column>
									<p:column headerText="操作" style="width:200px">
										<p:commandLink value="关联" update="bxBreakerTb" style="text-decoration:underline;color:red;"
											rendered="#{s:hasPermission(session,'jcsj_sjwh_ycsbwh_bxsjmxwh_dlqgl')}"
											actionListener="#{bxDataModelController.chooseEquipment('Breaker')}">
											<p:ajax event="dialogReturn"
												listener="#{bxDataModelController.onBreakerChosen}"
												update="bxBreakerTb" />
											<f:setPropertyActionListener
												target="#{bxDataModelController.selectedBxBreaker}"
												value="#{bxBreaker}" />
										</p:commandLink>
									</p:column>
								</p:dataTable>
							</h:form>
						</div>
						<div class="box-footer"></div>
					</div>
				</div>
				<!-- 变压器  -->
				<div class="chart tab-pane" id="powertransformer">
					<div class="box">
						<div class="box-body  full-content-scroll">
							<h:form id="bxPowertransformerForm">
								<p:growl id="msg" showDetail="true"></p:growl>
								<p:confirmDialog global="true" showEffect="fade"
									hideEffect="fade">
									<p:commandButton value="是" type="button"
										styleClass="ui-confirmdialog-yes" icon="ui-icon-check" />
									<p:commandButton value="否" type="button"
										styleClass="ui-confirmdialog-no" icon="ui-icon-close" />
								</p:confirmDialog>
								<p:toolbar>
									<f:facet name="left">
										<p:commandButton style="margin-left:5px" value="全部"
											actionListener="#{bxDataModelController.getAllPowerTrans}"
											update="msg powertransformerTb" />
										<p:commandButton style="margin-left:5px" value="未关联"
											actionListener="#{bxDataModelController.getPowerTrans}"
											update="msg powertransformerTb" />
										<p:commandButton value="重新关联" style="margin-left:5px"
											rendered="#{s:hasPermission(session,'jcsj_sjwh_ycsbwh_bxsjmxwh_byqzxgl')}"
											onstart="PF('statusDialog').show()"
											onsuccess="PF('statusDialog').hide()"
											actionListener="#{bxDataModelController.relation500kVPowerTrans}"
											update="msg powertransformerTb">
											<p:confirm header="提示" message="确定重新关联吗?" />
										</p:commandButton>
									</f:facet>
								</p:toolbar>
								<p:dataTable id="powertransformerTb" var="powertransformer" emptyMessage="无记录" rowKey="#{powertransformer.id}"
									value="#{bxDataModelController.bxPowertransformers}" selection="#{bxDataModelController.selectedPower}"
									style="text-align:center" paginator="true" rowIndexVar="ite" rows="20"
									paginatorTemplate="{Customization} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}
									{RowsPerPageDropdown}" rowsPerPageTemplate="20,50,100" paginatorPosition="bottom" >
									<f:facet name="{Customization}">
										<p:outputLabel value="总计：#{bxDataModelController.bxPowertransformers.size()} 条记录" style="margin-right:20px;" />
									</f:facet>
									<p:column headerText="序号 " style="width:60px">
										<h:outputText value="#{ite+1}" />
									</p:column>
									<p:column headerText=" 保信变电站ID">
										<h:outputText value="#{powertransformer.stationid}" />
									</p:column>
									<p:column headerText=" 保信变电站名">
										<h:outputText value="#{powertransformer.mname}" />
									</p:column>
									<p:column headerText="cim变电站名">
										<h:outputText value="#{powertransformer.cimName}" />
									</p:column>
									<p:column headerText="操作" style="width:200px">
										<p:commandLink value="关联" update="powertransformerTb" style="text-decoration:underline;color:red;"
											rendered="#{s:hasPermission(session,'jcsj_sjwh_ycsbwh_bxsjmxwh_byqgl')}"
											actionListener="#{bxDataModelController.chooseEquipment('PowerTransformer')}">
											<p:ajax event="dialogReturn"
												listener="#{bxDataModelController.onPowerChosen}"
												update="powertransformerTb" />
											<f:setPropertyActionListener
												target="#{bxDataModelController.selectedPower}"
												value="#{powertransformer}" />
										</p:commandLink>
									</p:column>
								</p:dataTable>
							</h:form>
						</div>
						<div class="box-footer"></div>
					</div>
				</div>

				<!-- 电抗器  -->
				<div class="chart tab-pane" id="Compensator">
					<div class="box">
						<div class="box-body  full-content-scroll">
							<h:form id="bxCompensatorForm">
								<p:growl id="msg" showDetail="true"></p:growl>
								<p:confirmDialog global="true" showEffect="fade"
									hideEffect="fade">
									<p:commandButton value="是" type="button"
										styleClass="ui-confirmdialog-yes" icon="ui-icon-check" />
									<p:commandButton value="否" type="button"
										styleClass="ui-confirmdialog-no" icon="ui-icon-close" />
								</p:confirmDialog>
								<p:toolbar>
									<f:facet name="left">
										<p:commandButton style="margin-left:5px" value="全部"
											actionListener="#{bxDataModelController.getAllBxCompensator}"
											update="msg CompensatorTb" />
										<p:commandButton style="margin-left:5px" value="未关联"
											actionListener="#{bxDataModelController.getBxCompensator}"
											update="msg CompensatorTb" />
										<p:commandButton value="重新关联" style="margin-left:5px"
											rendered="#{s:hasPermission(session,'jcsj_sjwh_ycsbwh_bxsjmxwh_dkqzxgl')}"
											onstart="PF('statusDialog').show()"
											onsuccess="PF('statusDialog').hide()"
											update="msg CompensatorTb">
											<p:confirm header="提示" message="确定重新关联吗?" />
										</p:commandButton>
									</f:facet>
								</p:toolbar>
								<p:dataTable id="CompensatorTb" var="bxCompensator" emptyMessage="无记录" rowKey="#{bxCompensator.id}"
									value="#{bxDataModelController.bxCompensators}" selection="#{bxDataModelController.selectedBxCompensator}"
									style="text-align:center" paginator="true" rowIndexVar="ite" rows="20"
									paginatorTemplate="{Customization} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}
									{RowsPerPageDropdown}" rowsPerPageTemplate="20,50,100" paginatorPosition="bottom" >
									<f:facet name="{Customization}">
										<p:outputLabel value="总计：#{bxDataModelController.bxCompensators.size()} 条记录" style="margin-right:20px;" />
									</f:facet>
									<p:column headerText="序号 " style="width:60px">
										<h:outputText value="#{ite+1}" />
									</p:column>
									<p:column headerText=" 保信变电站ID">
										<h:outputText value="#{bxCompensator.stationid}" />
									</p:column>
									<p:column headerText=" 保信电抗器名">
										<h:outputText value="#{bxCompensator.mname}" />
									</p:column>
									<p:column headerText="cim电抗器名">
										<h:outputText value="#{bxCompensator.cimName}" />
									</p:column>
									<p:column headerText="操作" style="width:200px">
										<p:commandLink value="关联" update="CompensatorTb" style="text-decoration:underline;color:red;"
											rendered="#{s:hasPermission(session,'jcsj_sjwh_ycsbwh_bxsjmxwh_dkqgl')}"
											actionListener="#{bxDataModelController.chooseEquipment('Compensator')}">
											<p:ajax event="dialogReturn" listener="#{bxDataModelController.onCompensatorChosen}" update="CompensatorTb" />
											<f:setPropertyActionListener target="#{bxDataModelController.selectedBxCompensator}" value="#{bxCompensator}" />
										</p:commandLink>
									</p:column>
								</p:dataTable>
							</h:form>
						</div>
						<div class="box-footer"></div>
					</div>
				</div>
				<!-- 发电机组  -->
				<div class="chart tab-pane" id="hydrogeneratingunit">
					<div class="box">
						<div class="box-body  full-content-scroll">
							<h:form id="hydrogeneratingunitForm">
								<p:growl id="msg" showDetail="true"></p:growl>
								<p:confirmDialog global="true" showEffect="fade"
									hideEffect="fade">
									<p:commandButton value="是" type="button"
										styleClass="ui-confirmdialog-yes" icon="ui-icon-check" />
									<p:commandButton value="否" type="button"
										styleClass="ui-confirmdialog-no" icon="ui-icon-close" />
								</p:confirmDialog>
								<p:toolbar>
									<f:facet name="left">
										<p:commandButton style="margin-left:5px" value="全部"
											actionListener="#{bxDataModelController.getAllGeneratings}"
											update="msg bxGeneratingTb" />
										<p:commandButton style="margin-left:5px" value="未关联"
											actionListener="#{bxDataModelController.getGeneratings}"
											update="msg bxGeneratingTb" />
										<p:commandButton value="重新关联" style="margin-left:5px"
											rendered="#{s:hasPermission(session,'jcsj_sjwh_ycsbwh_bxsjmxwh_fdjzzxgl')}"
											onstart="PF('statusDialog').show()" onsuccess="PF('statusDialog').hide()"
											actionListener="#{bxDataModelController.relationGenerating}" update="msg bxGeneratingTb">
											<p:confirm header="提示" message="确定重新关联吗?" />
										</p:commandButton>
									</f:facet>
								</p:toolbar>
								<p:dataTable id="bxGeneratingTb" var="bxGenerating" emptyMessage="无记录" rowKey="#{bxGenerating.id}"
									value="#{bxDataModelController.bxGeneratings}" selection="#{bxDataModelController.selectedBxGenerating}"
									style="text-align:center" paginator="true" rowIndexVar="ite" rows="20"
									paginatorTemplate="{Customization} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}
									{RowsPerPageDropdown}" rowsPerPageTemplate="20,50,100" paginatorPosition="bottom" >
									<f:facet name="{Customization}">
										<p:outputLabel value="总计：#{bxDataModelController.bxGeneratings.size()} 条记录" style="margin-right:20px;" />
									</f:facet>
									<p:column headerText="序号 " style="width:60px">
										<h:outputText value="#{ite+1}" />
									</p:column>
									<p:column headerText=" 保信变电站ID">
										<h:outputText value="#{bxGenerating.stationid}" />
									</p:column>
									<p:column headerText=" 发电机名">
										<h:outputText value="#{bxGenerating.mname}" />
									</p:column>
									<p:column headerText="cim发电机名">
										<h:outputText value="#{bxGenerating.cimName}" />
									</p:column>
									<p:column headerText="操作" style="width:200px">
										<p:commandLink value="关联" update="bxGeneratingTb" style="text-decoration:underline;color:red;"
											rendered="#{s:hasPermission(session,'jcsj_sjwh_ycsbwh_bxsjmxwh_fdjzgl')}"
											actionListener="#{bxDataModelController.chooseEquipment('HydroGeneratingUnit')}">
											<p:ajax event="dialogReturn" listener="#{bxDataModelController.onGeneratingChosen}" update="bxGeneratingTb" />
											<f:setPropertyActionListener target="#{bxDataModelController.selectedBxGenerating}" value="#{bxGenerating}" />
										</p:commandLink>
									</p:column>
								</p:dataTable>
							</h:form>
						</div>
						<div class="box-footer"></div>
					</div>
				</div>
			</div>
		</div>
	</ui:define>
</ui:composition>
